package com.tensquare.recruit.dao;

import com.tensquare.recruit.pojo.Enterprise;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * Created by WF on 2020/7/22 15:17
 */
public interface EnterpriseDao extends JpaRepository<Enterprise,String>, JpaSpecificationExecutor<Enterprise> {

    //1.查询热门企业
    //生成类似的SQL：select * from tb_enterprise where ishot=?
    List<Enterprise> findByIshot(String ishot);
}
